package com.china.tool;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseQuery {
    @ToolParam(required = false,description = "套餐名称")
    private String packageName;
    @ToolParam(required = false,description = "月租")
    private String monthlyRent;
    @ToolParam(required = false,description = "流量")
    private String traffic;
    @ToolParam(required = false,description = "通话时长")
    private String callDuration;
    @ToolParam(required = false,description = "附加服务")
    private String additionalServices;
    @ToolParam(required = false,description = "合约期")
    private String contractPeriod;
    @ToolParam(required = false,description = "优惠活动")
    private String preferentialActivity;


    @ToolParam(required = false,description = "排序规则,可以是多个")
    private List<Sort> sorts;

    @Data
    public static class Sort{
        @ToolParam(required = false,description = "按照排序的字段,可以是price/duration")
        private String field;
        @ToolParam(required = false,description = "是否按照升序排行,false按照降序排行，ture按照升序排行")
        private Boolean IsAsc;
    }
}
